package cn.doit.scala.day01.block

/**
 * @DATE 2021/12/24/11:31
 * @Author MDK
 * @Version 2021.2.2
 *
 * //by表示步进
 * */
object C02_For03 {
  def main(args: Array[String]): Unit = {
    for(index <- 1 to 10 by 2){
      println(index)
    }

    for(index <- 1 to 10){
      if(index %2 ==1){
        println(index)
      }
    }
  }
}
